<template>
  <div class="wrapper">
  <swiper :options="swiperOption">
      <swiper-slide v-for="item of swiperList" :key="item.id">
        <img class="swiper-img" :src="item.imgUrl" />
      </swiper-slide>
<!--      <swiper-slide>
        <img class="swiper-img" src="http://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/201911/2b49658e97197ebb14e591fdfebc1c2d.png_750x200_be896fb6.png" />
      </swiper-slide> -->
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
    </div>
</template>

<script>
 export default {
   name:'HomeSwiper',
   data () {
      return {
        swiperOption: {
          pagination: '.swiper-pagination',
          loop: true
        },
        swiperList:[{
          id: '0001',
          imgUrl: 'http://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/201910/e7eac5a5e99e6517c61b953c0fece63b.jpg_750x200_4b701cf8.jpg'
        },{
          id: '0002',
          imgUrl: 'http://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/201911/2b49658e97197ebb14e591fdfebc1c2d.png_750x200_be896fb6.png'
        }]
      }
   }
 }
</script>

<style lang="stylus" scoped>
  .wrapper
       overflow:hidden
       width: 100%
       height: 0
       padding-bottom: 31.25%
       background: #eee
       .swiper-pagination-bullet-active
          background: red !important
       .swiper-img
          width: 100%
</style>
